import { rcaNumberFormat } from './common.js'
import { commonTableOption } from './common.js'
export const tableOption = {
  ...commonTableOption,
  height: 400,
  column: [{
    type: 'date',
    label: '日期范围',
    searchSpan: 12,
    searchRange: true,
    search: true,
    hide: true,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    prop: 'cleanTime'
  }, {
    type: 'input',
    label: '开始时间',
    prop: 'beginTime'
  }, {
    type: 'input',
    label: '结束时间',
    prop: 'endTime'
  }, {
    type: 'select',
    label: '线路',
    prop: 'lineCode',
    search: true,
    display: true,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: '/support/swparamline/dictsecondname',
  }, {
    type: 'input',
    label: '误出站应急纸票回收金额',
    prop: 'emeTicketRecoveryAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '误出站应急纸票发售金额',
    prop: 'emeTicketSaleAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '误出站应急纸票清分金额(应急纸票、退票情况清分)',
    prop: 'emeTicketClearAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '大客流应急纸票回收金额',
    prop: 'lpfEmeTicketRecoveryAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '大客流应急纸票发售金额',
    prop: 'lpfEmeTicketSaleAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '大客流应急纸票清分金额',
    prop: 'lpfEmeTicketClearAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '非西安地铁运营商故障导致退款金额',
    prop: 'otherFaultRefundAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '非西安地铁运营商故障导致退款的清分金额',
    prop: 'otherFaultRefundClearAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '西安地铁运营商故障导致退款金额',
    prop: 'selfFaultRefundAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    label: '西安地铁运营商故障导致退款的清分金额',
    prop: 'selfFaultRefundClearAmount',
    showSummary: true,
    precision: 2,
    formatter: (row, value, label, column) => {
      return rcaNumberFormat(value)
    },
  }, {
    type: 'input',
    type: 'select',
    label: '运营商',
    search: true,
    props: {
      label: 'operatorsName',
      value: 'operators'
    },
    dicUrl: '/rca/swckclearrules/listoperators',
    prop: 'operators'
  }]
}
